package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"novel_website/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "POST:Login;OPTIONS:Login")
	beego.Router("/book/create", &controllers.BookController{}, "POST:Create;OPTIONS:Create")
	beego.Router("/image/create", &controllers.BookController{}, "POST:InputImage;OPTIONS:InputImage")
	beego.Router("/book/list", &controllers.BookController{}, "GET:ReadLogsList;OPTIONS:ReadLogsList")
	beego.Router("/book/del", &controllers.BookController{}, "POST:DelReadLog;OPTIONS:DelReadLog")
}
